From c2d68cd4fe05689995d924850eeb93194dca6c04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Mon, 2 Sep 2019 22:38:30 +0100 Subject: fsoptium: fix error in date stirng parsing. --- glucometerutils/drivers/fsoptium.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glucometerutils/drivers/fsoptium.py b/glucometerutils/drivers/fsoptium.py index daaa431..0148d54 100644 --- a/glucometerutils/drivers/fsoptium.py +++ b/glucometerutils/drivers/fsoptium.py @@ -80,7 +80,7 @@ def _parse_clock(datestr): month = _MONTH_MATCHES[match.group('month')] year = int(match.group('year')) - hour, minute, second = map(match.group('time').split(':'), int) + hour, minute, second = (int (x) for x in match.group('time').split(':')) return datetime.datetime(year, month, day, hour, minute, second) -- cgit v1.2.3